<?php
/**
 * Unfuddle Project Model
 *
 * @package     Unfuddle
 * @subpackage  Data Models
 * @author      Luke Visinoni <luke.visinoni@gmail.com>
 * @copyright   (c) 2010 Luke Visinoni <luke.visinoni@gmail.com>
 * @version     $Id: Project.php 27 2011-01-15 10:33:26Z luke.visinoni $
 */
class Unfuddle_Model_Project extends Unfuddle_Model_Abstract {

    protected $_name = 'project';
    
    protected $_fields = array (
        'account-id' => array('type' => 'integer', 'required' => false, 'read-only' => true),
        'archived' => array('type' => 'boolean', 'required' => false, 'read-only' => false),
        'assignee-on-resolve' => array('type' => 'set', 'required' => false, 'read-only' => false, 'set' => array('reporter', 'none', 'nochange')),
        'backup-frequency' => array('type' => 'integer', 'required' => false, 'read-only' => false),
        'close-ticket-simultaneously-default' => array('type' => 'boolean', 'required' => false, 'read-only' => false),
        'created-at' => array('type' => 'datetime', 'required' => false, 'read-only' => true),
        'default-ticket-report-id' => array('type' => 'integer', 'required' => false, 'read-only' => false),
        'description' => array('type' => 'text', 'required' => false, 'read-only' => false),
        'disk-usage' => array('type' => 'integer', 'required' => false, 'read-only' => true), // in Kilobytes
        'enable-time-tracking' => array('type' => 'boolean', 'required' => false, 'read-only' => false),
        'id' => array('type' => 'integer', 'required' => false, 'read-only' => true),
        's3-access-key-id' => array('type' => 'text', 'required' => false, 'read-only' => false),
        's3-backup-enabled' => array('type' => 'boolean', 'required' => false, 'read-only' => false),
        's3-bucket-name' => array('type' => 'text', 'required' => false, 'read-only' => false),
        'short-name' => array('type' => 'text', 'required' => false, 'read-only' => true),
        'theme' => array('type' => 'set', 'required' => false, 'read-only' => false, 'set' => array('blue', 'green', 'grey', 'orange', 'purple', 'red', 'teal')),
        'ticket-field1-active' => array('type' => 'boolean', 'required' => false, 'read-only' => false),
        'ticket-field1-title' => array('type' => 'text', 'required' => false, 'read-only' => false),
        'ticket-field1-disposition' => array('type' => 'set', 'required' => false, 'read-only' => false, 'set' => array('list', 'text')),
        'ticket-field2-active' => array('type' => 'boolean', 'required' => false, 'read-only' => false),
        'ticket-field2-title' => array('type' => 'text', 'required' => false, 'read-only' => false),
        'ticket-field2-disposition' => array('type' => 'set', 'required' => false, 'read-only' => false, 'set' => array('list', 'text')),
        'ticket-field3-active' => array('type' => 'boolean', 'required' => false, 'read-only' => false),
        'ticket-field3-title' => array('type' => 'text', 'required' => false, 'read-only' => false),
        'ticket-field3-disposition' => array('type' => 'set', 'required' => false, 'read-only' => false, 'set' => array('list', 'text')),
        'title' => array('type' => 'text', 'required' => false, 'read-only' => false),
        'updated-at' => array('type' => 'datetime', 'required' => false, 'read-only' => true),
    );

}